package website.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import website.domain.Article;
import website.domain.ResModel;
import website.dto.ArticleDTO;

import java.util.List;

public interface ArticleService extends IService<Article> {

    ResModel<Page<Article>> getList(Integer current, Integer size,Integer cid,  ArticleDTO articleDTO);

    ResModel<Article> getArticle(Integer id);

    ResModel addViews(Integer id);

    ResModel likes(Integer id, Integer uid);

    ResModel<List<Article>> getRecommend(Integer cid,Integer id);

    ResModel issueArticle(Article article);

    ResModel updateArticle(Article article);

    ResModel<List<Article>> getHotArticle();

    ResModel<Page<Article>> getListByUid(Integer current, Integer size, Integer uid);
}
